package com.letwal.cmcvnd.utils

import org.json.JSONObject

/** 用户流程管理工具 */
object InfoProcessUtil {

    var mUserProcess: JSONObject? = null

    /** 获取用户姓名 */
    fun getUserName(): String {
        val hello = "Hello"
        val recipientName = mUserProcess?.optString("recipientName", hello)
        return recipientName ?: hello
    }

    /** 注销退出 */
    fun logout() {
        mUserProcess = null
    }

}